package com.example.consumer_order_feign_disabled_global.feign;

import com.example.consumer_order_feign_disabled_global.model.UserInf;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "eureka-user",fallback = FeignCallback.class)
@Primary
public interface UserFeign {

    @RequestMapping(value = "/user/getById")
    UserInf getById(@RequestParam("id") String id);

}
